import pickle

myList=[1,23,4,5,6,7,"Hello world!!!!"]
with open("D:\\javaProject\\project\\newpro\\classbao\\pydemo\\demo.txt","wb") as f:


    #f.write("hello!!!你好qweqweT啊上午轻微的群翁请问请问")
    pickle.dump(myList,f)


with open("D:\\javaProject\\project\\newpro\\classbao\\pydemo\\demo.txt","rb") as f1:

    load = pickle.load(f1)

    print(load)

